import axios from "axios";

// axios的二次封装   封装一个公共方法：request 

let request = (params)=>{
    return new Promise((resolve,reject)=>{
        axios({
            ...params
        }).then(res=>{
            resolve(res)
        }).catch(err=>{
            reject(err)
        })
    })
}

export  {request};